package cc.sbootd2.sbootd2web.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class News extends Base {

    private Integer id;
    private String title;
    private String review;
    private String author;
    private String newsContent;
    private String newsImg;
    private Integer isTop;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer typeId;

    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getReview() {
        return review;
    }

    public void setReview(String review) {
        this.review = review;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsImg() {
        return newsImg;
    }

    public void setNewsImg(String newsImg) {
        this.newsImg = newsImg;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    //    id INT PRIMARY KEY AUTO_INCREMENT,
//    title VARCHAR(200) NOT NULL,--
//    review VARCHAR(1000),      --
//    author VARCHAR(20),        --
//    newsContent TEXT,           --
//    newsImg VARCHAR(200),      --
//    isTop INT DEFAULT 1,  -- 1:表示置顶  0:表示不置顶
//    createDate TIMESTAMP DEFAULT NOW(), --
//    typeId INT               --








}
